package com.woniu.day8.pojo;


import java.io.Serializable;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;


/**
* 
* @TableName owner
*/
@TableName("t_owner")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Owner implements Serializable {

    /**
    * 业主编号
    */
   @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
    * 业主姓名
    */

    private String username;
    /**
    * 手机号码
    */

    private String tel;
    /**
    * 性别
    */

    private String sex;
    /**
    * 身份证
    */

    private String identity;
    /**
    * 房屋id
    */

    private Integer houseId;
    /**
    * 备注
    */

    private String remarks;
    /**
    * 密码
    */

    private String password;
    /**
    * 是否删除
    */

    private Integer isdelete;
    /**
    * 删除 时间
    */
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern= "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss")

    private Date deltime;

 @TableField(exist = false)
 private List<Carcharge> carcharges;

}
